package com.washmadam.service.service.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.washmadam.service.db.dao.CustomerOrderServiceMapper;
import com.washmadam.service.db.dto.CustomerOrderService;
import com.washmadam.service.service.service.CustomerOrderServiceOperateService;

import lombok.extern.slf4j.Slf4j;

@Service
@Slf4j
public class CustomerOrderServiceOperateServiceImpl implements CustomerOrderServiceOperateService {
	@Autowired
	private CustomerOrderServiceMapper customerOrderServiceMapper;

	@Override
	public void saveOrUpdateCustomerOrderService(CustomerOrderService requestParam) {
		if (requestParam.getId() == null) {
			customerOrderServiceMapper.insertSelective(requestParam);
			return;
		}
		customerOrderServiceMapper.updateByPrimaryKeySelective(requestParam);
	}

}
